package com.free4k.keepalive;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.CountDownLatch;


/**
 * 启动类
 */
@SpringBootApplication
public class HttpKeepAliveApplication {

	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(HttpKeepAliveApplication.class);
		application.setBannerMode(Banner.Mode.OFF);
		application.run(args);
		// 防止spring容器退出
		try {
			CountDownLatch latch = new CountDownLatch(1);
			latch.await();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
